package com.acme.bankapp.domain.bank;

public class Client {

	private Account account;
	private String name;
	Gender gender;

	public Client(Account account, Gender gender, String name) {
		this.account = account;
		this.gender = gender;
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public Account getAccount() {
		return account;
	}

	public String getClientSalutation() {
		StringBuffer stb = new StringBuffer();
		stb.append(gender + " ");
		stb.append(this.name + " ");
		stb.append("your balance = " + this.account.getBalance() + "\n");
		return stb.toString();
	}

	@Override
	public String toString() {
		return getClientSalutation();
	}
}
